﻿#ifndef EXAMINTERFACE_H
#define EXAMINTERFACE_H

#include <QDialog>
#include <QTimer>
#include <QGridLayout>
#include "answeritem.h"
#include <QButtonGroup>
class ExamInterface:public QDialog
{
    Q_OBJECT
public:
    ExamInterface(QWidget*parent=0);

    void initTimer();
    void initLayout();
    bool initText();
    void initButtons();

private slots:
    void updateTime();
    void getScore();

private:
    QTimer *timer;
    int timeGo;
    QGridLayout*layout;

    QVector<AnswerItem*>answerItems;
    int lineMaxQNum;
    QVector<QButtonGroup*>BtnGroup;
};

#endif // EXAMINTERFACE_H
